home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / AppKitDefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-27  |  1.2 KB  |  68 lines

  1. /*
  2.     AppKitDefines.h
  3.     Application Kit
  4.     Copyright (c) 1995-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7. #ifndef _APPKITDEFINES_H
  8. #define _APPKITDEFINES_H
  9.  
  10. //
  11. //  Platform specific defs for externs
  12. //
  13.  
  14. //
  15. // For MACH
  16. //
  17.  
  18. #if defined(__MACH__)
  19.  
  20. #ifdef __cplusplus
  21. // This isnt extern "C" because the compiler will not allow this if it has
  22. // seen an extern "Objective-C"
  23. #define APPKIT_EXTERN        extern
  24. #define APPKIT_PRIVATE_EXTERN    __private_extern__
  25. #else
  26. #define APPKIT_EXTERN        extern
  27. #define APPKIT_PRIVATE_EXTERN    __private_extern__
  28. #endif
  29.  
  30. //
  31. // For Windows
  32. //
  33.  
  34. #elif defined(WIN32)
  35.  
  36. #ifndef _NSBUILDING_APPKIT_DLL
  37. #define _NSWINDOWS_DLL_GOOP    __declspec(dllimport)
  38. #else
  39. #define _NSWINDOWS_DLL_GOOP    __declspec(dllexport)
  40. #endif
  41.  
  42. #ifdef __cplusplus
  43. #define APPKIT_EXTERN        extern "C" _NSWINDOWS_DLL_GOOP
  44. #define APPKIT_PRIVATE_EXTERN    extern
  45. #else
  46. #define APPKIT_EXTERN        _NSWINDOWS_DLL_GOOP extern
  47. #define APPKIT_PRIVATE_EXTERN    extern
  48. #endif
  49.  
  50. //
  51. //  For Solaris
  52. //
  53.  
  54. #elif defined(SOLARIS)
  55.  
  56. #ifdef __cplusplus
  57. #define APPKIT_EXTERN        extern "C"
  58. #define APPKIT_PRIVATE_EXTERN    extern "C"
  59. #else
  60. #define APPKIT_EXTERN        extern
  61. #define APPKIT_PRIVATE_EXTERN    extern
  62. #endif
  63.  
  64. #endif
  65.  
  66. #endif // _APPKITDEFINES_H
  67.  
  68.